package com.ge.boot08rpc.Interface;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import reactor.core.publisher.Mono;

/**
 * 测试 Http Interface
 */

public interface HttpInterface {

    // 定义要访问的接口路径和媒体类型
    @GetExchange(url = "https://ip:port/api", accept = {MediaType.APPLICATION_JSON_VALUE})
    // 定义请求参数和请求头等信息
    Mono<String> doQuery(@RequestParam("param") String param);

}
